﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GalaSoft.MvvmLight;
using Shattered_Windows.OSVersioning;

namespace Shattered_Windows.ViewModels
{
    class MainPageViewModel : ViewModelBase
    {
        public BindableOperatingSystem OperatingSystem { get; private set; }

        #region PostOp

        private bool _deleteTemporaryFiles = false;
        public bool DeleteTemporaryInternetFiles
        {
            get
            {
                return _deleteTemporaryFiles;
            }
            set
            {
                if (_deleteTemporaryFiles != value)
                {
                    _deleteTemporaryFiles = value;
                    RaisePropertyChanged("DeleteTemporaryInternetFiles");
                }
            }
        }

        private bool _setDateTime = false;
        public bool SetDateTime
        {
            get
            {
                return _setDateTime;
            }
            set
            {
                if (_setDateTime != value)
                {
                    _setDateTime = value;
                    RaisePropertyChanged("SetDateTime");
                }
            }
        }

        #endregion

        private bool _fixWindowsInstaller = false;
        public bool FixWindowsInstaller
        {
            get { return _fixWindowsInstaller; }
            set
            {
                if (_fixWindowsInstaller != value)
                {
                    _fixWindowsInstaller = value;
                    RaisePropertyChanged("FixWindowsInstaller");
                }
            }

        }

        public MainPageViewModel()
        {
            Initialize();
        }

        void Initialize()
        {
            if (ViewModelBase.IsInDesignModeStatic)
            {
                // Code runs in Blend --> create design time data.
            }
            else
            {
                //Initialize any data context or commands.
                this.OperatingSystem = new BindableOperatingSystem();
                
            }
        }

    }
}
